/**************************************/
/*Global_C*/
#include "Global.h"

extern UART_HandleTypeDef huart1;
uint16_t Tms300;
uint8_t data_123[2000];
uint32_t data_point;

//extern int putchar(int c);

//int putchar(int c)
//{
////	uint32_t tickstart = HAL_GetTick();
//  
////	while (HAL_UART_GET_FLAG(huart1, UART_FLAG_TXE) == RESET)
////	{
////		if ((HAL_GetTick()-tickstart) >= 2)
////			break;
////	}
////	UART_CONSOLE->Instance->DR = c&(uint8_t)0xff;
//	uint8_t ch = (uint8_t)c;
//	HAL_UART_Transmit(&huart1,&ch,1,100);
//	return c;
//}
int fputc(int ch, FILE *f)

{

	uint8_t chq = (uint8_t)ch;
	HAL_UART_Transmit(&huart1,&chq,1,100);
	return ch;

return (ch);

}
